﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using OpenSocialPlugin.General;

namespace OpenSocialPlugin.Providers.Sites.Hi5
{
    public partial class SettingControl : UserControl,ISettingForm
    {
        public SiteSettings setings;
        public SettingControl()
        {
            InitializeComponent();
        }

        private void SettingControl_Load(object sender, EventArgs e)
        {
            setings.Load();
            textBox1.Text = setings.User;
            checkBox1.Checked = setings.Enabled;
        }


        #region ISettingForm Members

        public void Save()
        {
            setings.User = textBox1.Text;
            setings.Enabled = checkBox1.Checked;
            setings.Save();
        }

        #endregion
    }
}
